/**
 * Created by Administrator on 2017/8/21.
 */
var express = require('express');
var router = express.Router();
var goodsController = require('../controllers/goods');
var userController = require('../controllers/user');
var promise = require('../util/promise');

router.get('/', promise(goodsController.goods));
router.post('/addCart', userController.loginPermission, promise(goodsController.addCart));

module.exports = router;
